package com.ruoyi.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.VerUserMapper;
import com.ruoyi.domain.VerUser;
import com.ruoyi.service.IVerUserService;

/**
 * web user infoService业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
@Service
public class VerUserServiceImpl implements IVerUserService 
{
    @Autowired
    private VerUserMapper verUserMapper;

    /**
     * 查询web user info
     * 
     * @param userId web user info主键
     * @return web user info
     */
    @Override
    public VerUser selectVerUserByUserId(Long userId)
    {
        return verUserMapper.selectVerUserByUserId(userId);
    }

    /**
     * 查询web user info列表
     * 
     * @param verUser web user info
     * @return web user info
     */
    @Override
    public List<VerUser> selectVerUserList(VerUser verUser)
    {
        return verUserMapper.selectVerUserList(verUser);
    }

    /**
     * 新增web user info
     * 
     * @param verUser web user info
     * @return 结果
     */
    @Override
    public int insertVerUser(VerUser verUser)
    {
        verUser.setCreateTime(DateUtils.getNowDate());
        return verUserMapper.insertVerUser(verUser);
    }

    /**
     * 修改web user info
     * 
     * @param verUser web user info
     * @return 结果
     */
    @Override
    public int updateVerUser(VerUser verUser)
    {
        verUser.setUpdateTime(DateUtils.getNowDate());
        return verUserMapper.updateVerUser(verUser);
    }

    /**
     * 批量删除web user info
     * 
     * @param userIds 需要删除的web user info主键
     * @return 结果
     */
    @Override
    public int deleteVerUserByUserIds(Long[] userIds)
    {
        return verUserMapper.deleteVerUserByUserIds(userIds);
    }

    /**
     * 删除web user info信息
     * 
     * @param userId web user info主键
     * @return 结果
     */
    @Override
    public int deleteVerUserByUserId(Long userId)
    {
        return verUserMapper.deleteVerUserByUserId(userId);
    }
}
